package com.fmy.security.service.login;

import lombok.Data;

import java.util.Map;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @Description TODO 自定义身份验证实体类
 * @createTime 2019/9/10 09:50
 */
@Data
public class CustAuthentication {

    private String authType;
    private String username;
    private Map<String, String[]> authParameters;

    public String getAuthParameter(String paramter) {
        String[] values = this.authParameters.get(paramter);
        if (values != null && values.length > 0) {
            return values[0];
        }
        return null;
    }
}
